package com.ruoyi.web.controller.system;


import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.YcPie;
import com.ruoyi.system.service.IYcPieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 数据录入Controller
 *
 * @author YuHaoxiang
 * @date 2022-10-15
 */
//Controller
@RestController
@RequestMapping("/dashboard/ycpie")
public class YcPieController extends BaseController {
    @Autowired
    private IYcPieService ycPieService;

    @ResponseBody
    @GetMapping("listYcPie")
    public  TableDataInfo listYcPie(YcPie ycPie){
        List<YcPie> listYcPie = ycPieService.selectYcPieList(ycPie);
        return getDataTable(listYcPie);
    }

    @ResponseBody
    @GetMapping("listYcPieByParams")
    public  TableDataInfo listYcPieByParams(YcPie ycPie){
        List<YcPie> listYcPieByParams = ycPieService.selectYcPieListByParams(ycPie);
        return getDataTable(listYcPieByParams);
    }



}
